<%@ page contentType="text/html; charset=utf-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>运营平台监控系统-巨人网络</title>
<link type="text/css" rel="stylesheet" href="/commonSys/css/index.css" />
<SCRIPT type="text/javascript" src="/commonSys/js/jquery-1.7.1.min.js" charset="utf-8"></SCRIPT>
</head>
<body>
	<iframe frameborder="0" allowtransparency="true" src="/commonSys/common/header.jsp" class="header_iframe"></iframe>
    <div class="main">
        <div class="left_main">
        	<div class="menu_top"></div>
            <div class="menu_content" id="leftMenuDiv">
            </div>
            <div class="menu_bottom"></div>
        </div>        
		<div class="right_main">
    		<iframe name="mainFrame" id="mainFrame"  style="min-height:700px;height: auto !important; width:99%;" frameborder="0"  allowtransparency="true" src="/commonSys/manager/welcome.jsp" scrolling="no" ></iframe>
    	</div>
    </div>
    <div id="blank_lock" style="display:none" ></div> <!-- mainFrame弹出层div位置控制 -->
<script language="javascript">
	
	jQuery.ajaxSetup({  
	    async : false,
	    contentType: "application/x-www-form-urlencoded; charset=UTF-8"  
	});  

	$(function(){
		loadLeftMenu();
	});

	function loadLeftMenu(){
		var url = "/commonSys/manager/user/loadLeftMenu.shtml";
		var param = {};
		$.post(url 
			,param 
				,function(rs) {
					if(rs.code==0){
						createLeftMenu(rs.data);
					}
				}
		   ,'json');
	}
	
	
	function createLeftMenu(data){
		var leftMenuDiv = $('#leftMenuDiv');
		var html = '';
		html +='<ul class=\"menu_ul\" >';
		for(var i=0;i<data.length;i++){
			var module = data[i];
			
			if(i==0){
				html +='<li class=\"top menu_first\"><a class=\"up_arrow\"><\/a>'+module.name+'<\/li>';
			}else if(i==(data.length-1)){
				html +='<li class=\"bottom menu_first\"><a class=\"up_arrow\"><\/a>'+module.name+'<\/li>';
			}else{
				html +='<li class=\"menu_first\"><a class=\"up_arrow\"><\/a>'+module.name+'<\/li>';
			}
			
				html +='<li class=\"bg_none\">';
					html +='<ul>'; 
		            for(var j=0;j<module.menus.length;j++){
		            	var menu = (module.menus)[j];
		            	if(menu.selected=="1"){
		            		html +='<li><a h="'+menu.url+'">'+menu.menuName+'</a></li>';
		            	}
		            }
			        html +='<\/ul>';
	            html +='<\/li>'; 
			
		}
		html +='<\/ul>';
		leftMenuDiv.html(html);
	}
</script>    
<script language="javascript" src="/commonSys/js/leftMen.js"></script>
</body>
</html>
